<div class="storeOrderDetails index">
	<h2><?php __d('store','Store Order Details');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id');?></th>
			<th><?php echo $this->Paginator->sort('order_id');?></th>
			<th><?php echo $this->Paginator->sort('user_id');?></th>
			<th><?php echo $this->Paginator->sort('product_id');?></th>
			<th><?php echo $this->Paginator->sort('tax_id');?></th>
			<th><?php echo $this->Paginator->sort('unit_id');?></th>
			<th><?php echo $this->Paginator->sort('added');?></th>
			<th><?php echo $this->Paginator->sort('ilosc');?></th>
			<th><?php echo $this->Paginator->sort('price');?></th>
			<th class="actions"><?php __d('store','Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($storeOrderDetails as $storeOrderDetail):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $storeOrderDetail['StoreOrderDetail']['id']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($storeOrderDetail['StoreOrder']['id'], array('controller' => 'store_orders', 'action' => 'view', $storeOrderDetail['StoreOrder']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($storeOrderDetail['User']['id'], array('controller' => 'users', 'action' => 'view', $storeOrderDetail['User']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($storeOrderDetail['StoreProduct']['name'], array('controller' => 'store_products', 'action' => 'view', $storeOrderDetail['StoreProduct']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($storeOrderDetail['StoreTax']['name'], array('controller' => 'store_taxes', 'action' => 'view', $storeOrderDetail['StoreTax']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($storeOrderDetail['StoreUnit']['name'], array('controller' => 'store_units', 'action' => 'view', $storeOrderDetail['StoreUnit']['id'])); ?>
		</td>
		<td><?php echo $storeOrderDetail['StoreOrderDetail']['added']; ?>&nbsp;</td>
		<td><?php echo $storeOrderDetail['StoreOrderDetail']['ilosc']; ?>&nbsp;</td>
		<td><?php echo $storeOrderDetail['StoreOrderDetail']['price']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__d('store','View', true), array('action' => 'view', $storeOrderDetail['StoreOrderDetail']['id'])); ?>
			<?php echo $this->Html->link(__d('store','Edit', true), array('action' => 'edit', $storeOrderDetail['StoreOrderDetail']['id'])); ?>
			<?php echo $this->Html->link(__d('store','Delete', true), array('action' => 'delete', $storeOrderDetail['StoreOrderDetail']['id']), null, sprintf(__d('store','Are you sure you want to delete # %s?', true), $storeOrderDetail['StoreOrderDetail']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __d('store','Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __d('store','previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__d('store','next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<h3><?php __d('store','Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__d('store','New Store Order Detail', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__d('store','List Store Orders', true), array('controller' => 'orders', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__d('store','New Store Order', true), array('controller' => 'orders', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__d('store','List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__d('store','New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__d('store','List Store Products', true), array('controller' => 'products', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__d('store','New Store Product', true), array('controller' => 'products', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__d('store','List Store Taxes', true), array('controller' => 'taxes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__d('store','New Store Tax', true), array('controller' => 'taxes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__d('store','List Store Units', true), array('controller' => 'units', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__d('store','New Store Unit', true), array('controller' => 'units', 'action' => 'add')); ?> </li>
	</ul>
</div>